package com.example.jyjava.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Shop {
    private Integer id;
    private String title;
    private String content;
    private String original;
    private String price;
    private String shopType;
    private String shopNum;
    private String shopBuy;
    private String quality;
    private String shopUrl;
    private boolean shopState;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date creatTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private boolean shopSold;
    private String userId;
    private String shopLook;
    private boolean deleteType;
    private Lity lity;

    public Shop() {
    }

    public Shop(Integer id, String title, String content, String original, String price, String shopType, String shopNum, String shopBuy, String quality, String shopUrl, boolean shopState, Date creatTime, Date updateTime, boolean shopSold, String userId, String shopLook, boolean deleteType, Lity lity) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.original = original;
        this.price = price;
        this.shopType = shopType;
        this.shopNum = shopNum;
        this.shopBuy = shopBuy;
        this.quality = quality;
        this.shopUrl = shopUrl;
        this.shopState = shopState;
        this.creatTime = creatTime;
        this.updateTime = updateTime;
        this.shopSold = shopSold;
        this.userId = userId;
        this.shopLook = shopLook;
        this.deleteType = deleteType;
        this.lity = lity;
    }

    public Lity getLity() {
        return lity;
    }

    public void setLity(Lity lity) {
        this.lity = lity;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getOriginal() {
        return original;
    }

    public void setOriginal(String original) {
        this.original = original;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getShopType() {
        return shopType;
    }

    public void setShopType(String shopType) {
        this.shopType = shopType;
    }

    public String getShopNum() {
        return shopNum;
    }

    public void setShopNum(String shopNum) {
        this.shopNum = shopNum;
    }

    public String getShopBuy() {
        return shopBuy;
    }

    public void setShopBuy(String shopBuy) {
        this.shopBuy = shopBuy;
    }

    public String getQuality() {
        return quality;
    }

    public void setQuality(String quality) {
        this.quality = quality;
    }

    public String getShopUrl() {
        return shopUrl;
    }

    public void setShopUrl(String shopUrl) {
        this.shopUrl = shopUrl;
    }

    public boolean isShopState() {
        return shopState;
    }

    public void setShopState(boolean shopState) {
        this.shopState = shopState;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public boolean isShopSold() {
        return shopSold;
    }

    public void setShopSold(boolean shopSold) {
        this.shopSold = shopSold;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getShopLook() {
        return shopLook;
    }

    public void setShopLook(String shopLook) {
        this.shopLook = shopLook;
    }

    public boolean isDeleteType() {
        return deleteType;
    }

    public void setDeleteType(boolean deleteType) {
        this.deleteType = deleteType;
    }

    @Override
    public String toString() {
        return "Shop{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", original='" + original + '\'' +
                ", price='" + price + '\'' +
                ", shopType='" + shopType + '\'' +
                ", shopNum='" + shopNum + '\'' +
                ", shopBuy='" + shopBuy + '\'' +
                ", quality='" + quality + '\'' +
                ", shopUrl='" + shopUrl + '\'' +
                ", shopState=" + shopState +
                ", creatTime=" + creatTime +
                ", updateTime=" + updateTime +
                ", shopSold=" + shopSold +
                ", userId='" + userId + '\'' +
                ", shopLook='" + shopLook + '\'' +
                ", deleteType=" + deleteType +
                ", lity=" + lity +
                '}';
    }
}
